package com.rockcent.mall.lib.helper;

import com.rockcent.common.common.BusinessException;
import com.taobao.api.ApiException;

/**
 * Created by zhangjh on 2017/5/4.
 */
public interface SMSStrategy {
    /**
     * 发送短信，还有子平台名称
     * @param mobile 手机号码
     * @param code 验证码
     * @param name 子平台名称
     * @return
     * @throws ApiException
     */
    String send(String mobile, String code, String name) throws BusinessException;

    /**
     *
     * @param mobile
     * @param code
     * @return
     * @throws ApiException
     */
    String send(String mobile, String code) throws BusinessException;

    /**
     *
     * @param response
     * @return
     */
    boolean handleResponse(String response);
}
